package com.example.pojo.entitly;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName drug_sellrecords
 */
public class DrugSellrecords implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 出售时间
     */
    private Date sellDatetime;

    /**
     * 处方单号
     */
    private Integer prescriptionId;

    /**
     * 药品id
     */
    private Integer drugId;

    /**
     * 药品数量
     */
    private Integer grugData;

    /**
     * 药品价格
     */
    private Double drugPrice;

    /**
     * 操作人
     */
    private Integer druguserId;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 出售时间
     */
    public Date getSellDatetime() {
        return sellDatetime;
    }

    /**
     * 出售时间
     */
    public void setSellDatetime(Date sellDatetime) {
        this.sellDatetime = sellDatetime;
    }

    /**
     * 处方单号
     */
    public Integer getPrescriptionId() {
        return prescriptionId;
    }

    /**
     * 处方单号
     */
    public void setPrescriptionId(Integer prescriptionId) {
        this.prescriptionId = prescriptionId;
    }

    /**
     * 药品id
     */
    public Integer getDrugId() {
        return drugId;
    }

    /**
     * 药品id
     */
    public void setDrugId(Integer drugId) {
        this.drugId = drugId;
    }

    /**
     * 药品数量
     */
    public Integer getGrugData() {
        return grugData;
    }

    /**
     * 药品数量
     */
    public void setGrugData(Integer grugData) {
        this.grugData = grugData;
    }

    /**
     * 药品价格
     */
    public Double getDrugPrice() {
        return drugPrice;
    }

    /**
     * 药品价格
     */
    public void setDrugPrice(Double drugPrice) {
        this.drugPrice = drugPrice;
    }

    /**
     * 操作人
     */
    public Integer getDruguserId() {
        return druguserId;
    }

    /**
     * 操作人
     */
    public void setDruguserId(Integer druguserId) {
        this.druguserId = druguserId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DrugSellrecords other = (DrugSellrecords) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSellDatetime() == null ? other.getSellDatetime() == null : this.getSellDatetime().equals(other.getSellDatetime()))
            && (this.getPrescriptionId() == null ? other.getPrescriptionId() == null : this.getPrescriptionId().equals(other.getPrescriptionId()))
            && (this.getDrugId() == null ? other.getDrugId() == null : this.getDrugId().equals(other.getDrugId()))
            && (this.getGrugData() == null ? other.getGrugData() == null : this.getGrugData().equals(other.getGrugData()))
            && (this.getDrugPrice() == null ? other.getDrugPrice() == null : this.getDrugPrice().equals(other.getDrugPrice()))
            && (this.getDruguserId() == null ? other.getDruguserId() == null : this.getDruguserId().equals(other.getDruguserId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSellDatetime() == null) ? 0 : getSellDatetime().hashCode());
        result = prime * result + ((getPrescriptionId() == null) ? 0 : getPrescriptionId().hashCode());
        result = prime * result + ((getDrugId() == null) ? 0 : getDrugId().hashCode());
        result = prime * result + ((getGrugData() == null) ? 0 : getGrugData().hashCode());
        result = prime * result + ((getDrugPrice() == null) ? 0 : getDrugPrice().hashCode());
        result = prime * result + ((getDruguserId() == null) ? 0 : getDruguserId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", sellDatetime=").append(sellDatetime);
        sb.append(", prescriptionId=").append(prescriptionId);
        sb.append(", drugId=").append(drugId);
        sb.append(", grugData=").append(grugData);
        sb.append(", drugPrice=").append(drugPrice);
        sb.append(", druguserId=").append(druguserId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}